<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="admin.*" %>
<%
request.setCharacterEncoding("utf-8");
String action=request.getParameter("submit");
if(action!=null&&action.equals("提交")){
	String title=request.getParameter("title");
	String url=request.getParameter("url");
	String code=request.getParameter("code");
	Uploadrs ulrs=new Uploadrs();
	String result=ulrs.exe(title, url,code);
	out.println("<script>alert('"+result+"');</script>");
}
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>资源上传</title>
    <style>

        form{
            position: absolute;
            left:50%;
            top: 40%;
            transform: translate(-50%, -50%);
            width: 208px;
            height: 96px;
        }
        input{
            width: 200px;
            text-align: center;
        }
        #btn{
            width: 60px;
            margin-left: 70px;
        }
    </style>
</head>
<body>
<a href="manage.jsp">退出</a>
        <form method="post">
            <input type="text" placeholder="标题" name="title"/><br>
            <input type="text"placeholder="URL"/ name="url"><br>
            <input type="text" placeholder="提取码" name="code"/><br>
            <input type="submit" value="提交" name="submit" id="btn"/>
        </form>
</body>
</html>